import { createRouter, createWebHistory } from 'vue-router'
import start from '../components/start.vue'
import chooseLevel from '../components/chooseLevel.vue'
import gemeView from '../components/game.vue'
import markLevel from '../components/marker.vue'
const routes = [
    {
        path: '/',
        name: 'start',
        component: start
    },
    {
        path: '/chooseLevel',
        name: 'chooseLevel',
        component: chooseLevel
    },
    {
        path: '/gemeView/:id',
        name: 'gemeView',
        component: gemeView,
        props: true
    },
    {
        path: '/markLevel',
        name: 'markLevel',
        component: markLevel,
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router